package com.qipay.sp.excutor.aliface;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import com.qipay.sp.excutor.alipay.*;
import org.springframework.stereotype.Component;

@Component
public class AliFaceFactory implements ExcutorFactory {


    @Override
    public AbstractExcutor createAlipayWapExcutor() {
        return (AliFaceWapExcutor) SpringContextUtil.getBean(AliFaceWapExcutor.class);
    }
    @Override
    public AbstractExcutor createAlipayNativeExcutor() {
        return (AliFaceNativeExcutor) SpringContextUtil.getBean(AliFaceNativeExcutor.class);
    }

}
